package org.wangnian.validationdemo.service.impl;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import org.wangnian.validationdemo.groups.user.InsertUser;
import org.wangnian.validationdemo.model.UserDetails;
import org.wangnian.validationdemo.service.UserService;

@Service
@Validated(value = {InsertUser.class})
public class UserServiceImpl implements UserService {


    @Override
    public void add(String username,String password) {

    }

    @Override
    public void add(UserDetails userDetails) {

    }
}

